﻿using System;
using System.Linq;

class Program
{
    static int ConvertDecimalToBinary(int number)
    {
        return int.Parse(Convert.ToString(number, 2));
    }

    static void Main()
    {
        int number = int.Parse(Console.ReadLine());

        Console.WriteLine(ConvertDecimalToBinary(number));

    }
}

